package berlinatyourfingertips.ua.examples;

import berlinatyourfingertips.ua.UAListener;
import berlinatyourfingertips.ua.UAResult;
import berlinatyourfingertips.ua.apis.UAPanoramio;
import berlinatyourfingertips.ua.apis.UATwitter;
import berlinatyourfingertips.ua.apis.UAUpdatingTwitter;

public class UATestAll implements UAListener {

	private String geolocationBerlin = "52.31%2C13.20%2C";
	private String geolocationNewYork = "40.47%2C-73.58%2C";
	private String geolocationDublin = "53.20%2C-6.15%2C";
	
	public static void main(String[] args) {
		UATestAll app = new UATestAll();
	}	
	
	public UATestAll() {
		UAPanoramio p = new UAPanoramio(.2f, "upload_date", "full", "thumbnail");
		p.getAllAtPosition(13.394894f, 52.524489f);
		
		UATwitter twitter = new UATwitter();
		twitter.getAll();
		
		UAUpdatingTwitter t = new UAUpdatingTwitter(this, 6000);
		t.start();		
	}

	public void newElement(UAResult uar) {
		System.out.println("Adding timed twitter: "+uar.getMessage());
	}

	public void removeElement(UAResult uar) {
		// TODO Auto-generated method stub
		
	}

}
